{% extends "pretixcontrol/organizers/base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% block inner %}
    <h1>{% trans "Delete team:" %} {{ team.name }}</h1>
    {% if not possible %}
        <p>{% blocktrans %}You cannot delete the team because there would be no one left who could change team permissions afterwards.{% endblocktrans %}</p>
        <div class="form-group submit-group">
            <a href="{% url "control:organizer.teams" organizer=request.organizer.slug %}" class="btn btn-default btn-cancel">
                {% trans "Cancel" %}
            </a>
            <div class="clearfix"></div>
        </div>
    {% else %}
        <form action="" method="post" class="form-horizontal">
            {% csrf_token %}
            <p>{% blocktrans %}Are you sure you want to delete the team?{% endblocktrans %}
            </p>
            <div class="form-group submit-group">
                <a href="{% url "control:organizer.teams" organizer=request.organizer.slug%}" class="btn btn-default btn-cancel">
                    {% trans "Cancel" %}
                </a>
                <button type="submit" class="btn btn-delete btn-danger btn-save">
                    {% trans "Delete" %}
                </button>
            </div>
        </form>
    {% endif %}
{% endblock %}
